<template>
  <div>
    <button @click="fn()">childClick</button>
  </div>
</template>

<script setup>
import { reactive } from 'vue'
const props = defineProps({ msg: String });
console.log(props.msg);
const people = reactive({ name: '张三', age: 18 })
const emits = defineEmits();
const fn = () => {
  emits("child-click");
}
defineExpose({
  people
})
</script>

<style>
</style>